package com.cjack.frenchexcel.exception;

import com.cjack.frenchexcel.config.ErrorCodeDefine;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class CommonException extends RuntimeException {
    private static final long serialVersionUID = -6393928188237798431L;
    private Integer code = ErrorCodeDefine.INTERFACE_COMMON_ERROR;
    private String message = ErrorCodeDefine.INTERFACE_COMMON_ERROR_MSG;
    public CommonException(Integer code) {
        this.code = code;
    }
}

